# data = [int (x) for i in open ('DadA.txt')]
# k = 1
# while k!= 0:
#     k = 0
#     for i in range (len(data) - 1):
#         if data[i] > data[i + 1]:
#             data[i], data[i + 1] = data[i + 1], data[i]
#             k+=1
#     print(data)

x = int(input())
import time
st = time.perf_counter()
data = [x = for i in open ('DadA.txt')]
k = 1
while k!= 0:
    k = 0
    for i in range (len(data) - 1):
        if data[i] > data[i + 1]:
            data[i], data[i + 1] = data[i + 1], data[i]
            k+=1
    print(data)
ft = time.perf_counter()

